Dynomotion

Group: DynoMotion Message: 10887 From: Colin Fera Date: 1/20/2015
Subject: flush buffer
Does anyone know if there is a way to clear the buffer from within a C program?

Problem: If I hit soft limits I need to disable the drives before disabling the soft limits and feed hold. Otherwise as soon as I disable soft limits the machine will crash (hopefully into the hard limit switches).  I want the disable soft limits button I created to both disable the soft limit and clear the buffer.  

Perhaps there is a better way. 

Thanks,
Colin
Group: DynoMotion Message: 10890 From: Tom Kerekes Date: 1/21/2015
Subject: Re: flush buffer
Hi Colin,

I'm not sure I entirely understand the scenario or issue.  But

ClearStopImmediately();

should clear out any motion that is pending to be resumed from a FeedHold condition.

HTH
Regards
TK

Group: DynoMotion Message: 10892 From: Colin Fera Date: 1/21/2015
Subject: Re: flush buffer

Thanks Tom,

That solution sounds like a winner.

But let me explain the problem better,  I probably have something miss configured

Lets say I jog the Z axis up too far and run into the soft limit.  The feed hold is activated.  I have a button to disable the soft limits (set them to values that could never be reached).  I hit that button then hit the feed hold again, the z axis will immediately continue up into the hard limit switch. Maybe I should have been hitting stop prior to un doing the feed hold.

Also the small arrow buttons that appear next to the feed hold don't have any affect when I have jogged into the soft limit (probably how its supposed to work).

Thanks again for being so responsive.

-Colin


On Wed, Jan 21, 2015 at 9:51 AM, Tom Kerekes tk@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:
 

Hi Colin,

I'm not sure I entirely understand the scenario or issue.  But

ClearStopImmediately();

should clear out any motion that is pending to be resumed from a FeedHold condition.

HTH
Regards
TK

Group: DynoMotion Message: 10893 From: Tom Kerekes Date: 1/21/2015
Subject: Re: flush buffer
Hi Colin,

That sounds reasonable.  In general releasing FeedHold allows any previously commanded motion to continue.  I thought we recently made a change so that if KFLOP received a Jog to zero speed while in FeedHold that any commanded motion will be discarded and so no movement will resume if FeedHold is released.  Releasing the Jog Button should cause a stop (Jog to zero speed).  So I'm not sure why you have this issue.  What Version are you running?  It is probably a good idea anyway to explicitly perform ClearStopImmediately() whenever you remove Soft Limits.  What is your purpose of removing Soft Limits?  

Regards
TK

Group: DynoMotion Message: 10894 From: Colin Fera Date: 1/21/2015
Subject: Re: flush buffer
Hi Tom, 

 I'm using the latest.

  I seem to jog into soft limits on Z allot because I try and mill with the quill as high up in the head as possible because it increases the overall stiffness of the machine.  

When I do jog into soft limits I can't undo feed hold and jog out unless I take off soft limits. The feed hold button is unresponsive until the soft limits are on.  Maybe it's still trying to move up and clearing it re trips the limit. 

Colin


Sent from my iPhone

On Jan 21, 2015, at 12:19, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:

 

Hi Colin,

That sounds reasonable.  In general releasing FeedHold allows any previously commanded motion to continue.  I thought we recently made a change so that if KFLOP received a Jog to zero speed while in FeedHold that any commanded motion will be discarded and so no movement will resume if FeedHold is released.  Releasing the Jog Button should cause a stop (Jog to zero speed).  So I'm not sure why you have this issue.  What Version are you running?  It is probably a good idea anyway to explicitly perform ClearStopImmediately() whenever you remove Soft Limits.  What is your purpose of removing Soft Limits?  

Regards
TK

Group: DynoMotion Message: 10895 From: Tom Kerekes Date: 1/21/2015
Subject: Re: flush buffer
Hi Colin,

What do you mean by "latest" ?

That should not be the case.  If you Jog into a Soft Limit you should be able to then release FeedHold, then Jog away from the Soft Limit.

Regards
TK


From: "Colin Fera colin.fera@... [DynoMotion]" <DynoMotion@yahoogroups.com>
To: "DynoMotion@yahoogroups.com" <DynoMotion@yahoogroups.com>
Cc: "DynoMotion@yahoogroups.com" <DynoMotion@yahoogroups.com>
Sent: Wednesday, January 21, 2015 1:09 PM
Subject: Re: [DynoMotion] flush buffer

 
Hi Tom, 

 I'm using the latest.

  I seem to jog into soft limits on Z allot because I try and mill with the quill as high up in the head as possible because it increases the overall stiffness of the machine.  

When I do jog into soft limits I can't undo feed hold and jog out unless I take off soft limits. The feed hold button is unresponsive until the soft limits are on.  Maybe it's still trying to move up and clearing it re trips the limit. 

Colin


Sent from my iPhone



On Jan 21, 2015, at 12:19, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:

 
Hi Colin,

That sounds reasonable.  In general releasing FeedHold allows any previously commanded motion to continue.  I thought we recently made a change so that if KFLOP received a Jog to zero speed while in FeedHold that any commanded motion will be discarded and so no movement will resume if FeedHold is released.  Releasing the Jog Button should cause a stop (Jog to zero speed).  So I'm not sure why you have this issue.  What Version are you running?  It is probably a good idea anyway to explicitly perform ClearStopImmediately() whenever you remove Soft Limits.  What is your purpose of removing Soft Limits?  

Regards
TK

Group: DynoMotion Message: 10896 From: Colin Fera Date: 1/21/2015
Subject: Re: flush buffer
Hi Tom,
 
4.33k. 
 
That's not the behavior I am seeing.  
 
Could it be an artifact of having the non standard channel to axis layout?
 
I will try it again tonight with the now standard layout and let you know what I see.  I could probably take a video if the behavior still presents itself.
 
-Colin
 
 
 
 

On Wed, Jan 21, 2015 at 3:37 PM, Tom Kerekes tk@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:
 

Hi Colin,

What do you mean by "latest" ?

That should not be the case.  If you Jog into a Soft Limit you should be able to then release FeedHold, then Jog away from the Soft Limit.

Regards
TK

Group: DynoMotion Message: 10897 From: Dan W Date: 1/21/2015
Subject: Re: flush buffer
I am having a very simular response when I hit a soft limit. Sometimes I can click on the feed hold button and it will clear. Then I can jog off the limit only with the jog buttons on the KmotionCNC GUI. My hardwired jog pendant can't be used to jog off the limit. Additionally it seems that if I hit a soft limit while using my jog pendant and go more than a few clicks past the stopping point before realizing it, I can't get the feed hold to clear. 

Dan


-------- Original message --------
From: "Colin Fera colin.fera@... [DynoMotion]"
Date:01/21/2015 6:40 PM (GMT-06:00)
To: dynomotion
Subject: Re: [DynoMotion] flush buffer

 

Hi Tom,
 
4.33k. 
 
That's not the behavior I am seeing.  
 
Could it be an artifact of having the non standard channel to axis layout?
 
I will try it again tonight with the now standard layout and let you know what I see.  I could probably take a video if the behavior still presents itself.
 
-Colin
 
 
 
 

On Wed, Jan 21, 2015 at 3:37 PM, Tom Kerekes tk@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:
 

Hi Colin,

What do you mean by "latest" ?

That should not be the case.  If you Jog into a Soft Limit you should be able to then release FeedHold, then Jog away from the Soft Limit.

Regards
TK

Group: DynoMotion Message: 10898 From: Colin Fera Date: 1/21/2015
Subject: Re: flush buffer
I can't reliably re create the behavior to make a video.  I managed to do it once, subsequent attempts failed.  

I did notice that if the position is changed with feed hold on as in jog into soft limits (causing feed hold)  hit home button running EnableAxisDest(2,0);,  Hit feed hold again, the axis will immediately move back to the position it was in before.  This is not exactly what I was describing earlier.  Adding the  ClearStop... to the command that resets the axis position prevents this, I also added it to the routine that turns off soft limits. I think for me at least this the fix I was looking for.

Thanks,
Colin

On Wed, Jan 21, 2015 at 5:58 PM, Dan W engnerdan@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:
 

I am having a very simular response when I hit a soft limit. Sometimes I can click on the feed hold button and it will clear. Then I can jog off the limit only with the jog buttons on the KmotionCNC GUI. My hardwired jog pendant can't be used to jog off the limit. Additionally it seems that if I hit a soft limit while using my jog pendant and go more than a few clicks past the stopping point before realizing it, I can't get the feed hold to clear. 


Dan


-------- Original message --------
From: "Colin Fera colin.fera@... [DynoMotion]"
Date:01/21/2015 6:40 PM (GMT-06:00)
To: dynomotion
Subject: Re: [DynoMotion] flush buffer

 

Hi Tom,
 
4.33k. 
 
That's not the behavior I am seeing.  
 
Could it be an artifact of having the non standard channel to axis layout?
 
I will try it again tonight with the now standard layout and let you know what I see.  I could probably take a video if the behavior still presents itself.
 
-Colin
 
 
 
 

On Wed, Jan 21, 2015 at 3:37 PM, Tom Kerekes tk@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:
 

Hi Colin,

What do you mean by "latest" ?

That should not be the case.  If you Jog into a Soft Limit you should be able to then release FeedHold, then Jog away from the Soft Limit.

Regards
TK

Group: DynoMotion Message: 10901 From: Tom Kerekes Date: 1/22/2015
Subject: Re: flush buffer
Hi Colin/Dan,

I was able to replicate certain cases where I wasn't allowed to Jog away from soft limits.  I suspect it has to do with numerical round off issues causing a microscopic motion toward the soft limit as we currently don't allow any motion at all.  We will try to come up with a solution so you shouldn't need to do anything special to be able to Jog out of Soft Limits.

Regards
TK